package com.children.growth.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.children.growth.entity.Drawing;
import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

/**
 * 绘画服务接口
 * 
 * @author children
 * @since 1.0.0
 */
public interface DrawingService {

    /**
     * 创建绘画记录
     */
    boolean createDrawing(Drawing drawing, MultipartFile imageFile);

    /**
     * 获取绘画列表
     */
    Page<Drawing> getDrawingList(Long userId, Integer pageNum, Integer pageSize);

    /**
     * 获取绘画详情
     */
    Drawing getDrawingById(Long id);

    /**
     * 更新绘画记录
     */
    boolean updateDrawing(Drawing drawing);

    /**
     * 删除绘画记录
     */
    boolean deleteDrawing(Long id);

    /**
     * AI分析画作
     */
    Map<String, Object> analyzeDrawing(Long drawingId);

    /**
     * 获取绘画统计
     */
    Map<String, Object> getDrawingStatistics(Long userId);
} 